package com.xh.hongrpc.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RpcResponse implements Serializable {
    /**
     * 返回结果
     */
    private Object data;
    /**
     * 请求异常
     */
    private Exception exception;
    /**
     * 返回结果的类型
     */
    private Class<?> dataType;
    /**
     * 响应信息
     */
    private String message;
}
